Interface Pc

All Superinterfaces:
Device, IPCObject
All Known Subinterfaces:
Server
All Known Implementing Classes:
PcImpl, ServerImpl

public interface Pc extends Device
Information provided by the PKI file:

    \class Pc
    
    \brief Pc is PC device object with a terminal line.
    
    \example network().getDevice("PC0")
    
Author:
Auto-generated
  • Method Details

    • getCommandPrompt

      TerminalLine getCommandPrompt()
      Information provided by the PKI file:
      
          \brief Returns the command prompt of the PC.
          
          \return TerminalLine, the TerminalLine object.
          
              
      Returns:
      TerminalLine Returns a TerminalLine
    • setDhcpFlag

      void setDhcpFlag(boolean status)
      Information provided by the PKI file:
      
          \brief Enables or disables DHCP.
          
          \param status, true to enable DHCP, false to disable it.
          
              
      Parameters:
      status - Takes in a parameter of status
    • getDhcpFlag

      boolean getDhcpFlag()
      Information provided by the PKI file:
      
          \brief Returns true if DHCP is enabled, otherwise false.
          
          \param bool, true if DHCP is enabled, otherwise false.
          
              
      Returns:
      boolean Returns a boolean
    • setDefaultGateway

      void setDefaultGateway(IPAddress gateway)
      Information provided by the PKI file:
      
          \brief Sets the default gateway.
          
          \param gateway, the IP address of the default gateway.
          
              
      Parameters:
      gateway - Takes in a parameter of gateway
    • getRs232Port

      Port getRs232Port()
      Information provided by the PKI file:
      
          \brief Returns the RS232 port.
          
          \return Port, the Port object of the RS232 port.
          
              
      Returns:
      Port Returns a Port